package org.jeecg.modules.word_order.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("work_Internal_vo")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class WorkInternalVo {
    /**编号;UUID  */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号;UUID")
    private String id;
    /**工单编号，工单表外键*/
    @Excel(name = "工单编号，工单表外键", width = 15)
    @ApiModelProperty(value = "工单编号，工单表外键")
    private String internalWorkId;
    /**工单内容*/
    @Excel(name = "工单内容", width = 15)
    @ApiModelProperty(value = "工单内容")
    private String internalContent;
    /**工单名称*/
    @Excel(name = "工单名称", width = 15)
    @ApiModelProperty(value = "工单名称")
    private String workName;
    /**注意事项*/
    @Excel(name = "注意事项", width = 15)
    @ApiModelProperty(value = "注意事项")
    private String internalMatters;
    /**客户名称*/
    @Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String workCustomer;
    /**客户手机号*/
    @Excel(name = "客户手机号", width = 15)
    @ApiModelProperty(value = "客户手机号")
    private String workPhone;
    /**客户地址*/
    @Excel(name = "客户地址", width = 15)
    @ApiModelProperty(value = "客户地址")
    private String workAddress;
    /**工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成*/
    @Excel(name = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成", width = 15)
    @ApiModelProperty(value = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成")
    @Dict(dicCode = "workDistribution_status")
    private Integer workDistribution;
    /**工单紧急程度*/
    @Excel(name = "工单紧急程度", width = 15)
    @ApiModelProperty(value = "工单紧急程度")
    @Dict(dicCode = "workUrgent_status")
    private Integer workUrgent;
    /**工单开始时间*/
    @Excel(name = "工单开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单开始时间")
    private Date workStart;
    /**工单结束时间*/
    @Excel(name = "工单结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "工单结束时间")
    private Date workEnd;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
}
